/*  This file is part of the comicconquer project
    Copyright (C) 2010 Reach <reach334@gmail.com>

    ComicConquer is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public 
    License along with this software.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef GESTUREPAGE_H
#define GESTUREPAGE_H

#include "mist.h"
#include "onyx/ui/buttons.h"
#include "Configuration.h"
#include "GestureViewWidget.h"
#include "CoListDlg.h"
#include "MouseControl.h"
#include "CoTabPage.h"

class GesturePage : public CoTabPage
{
    Q_OBJECT

    //-- constructor
public:
    GesturePage(CoGestureMap& gestureMap, QWidget* parent = 0);

    //-- public methods
public:
    bool isConflict();
    void initByGestureMap();
    void writeToGestureMap();

    //-- private members
private:
    QVector<GestureViewWidget*> m_viewColumns;
    QVBoxLayout* m_mainlayout;
    ui::OnyxPushButton* m_bNew;
    CoGestureMap* m_gestureMap;

    //-- private slots
private slots:
    void deleteColumn(GestureViewWidget* column);
    void newColumn();
};

#endif // GESTUREPAGE_H
